package hamsterwrench.data.rpg;

public class GlobalTextString {
	private String data;
	private int maxLength;
	
	public GlobalTextString(int len){
		maxLength = len;
	}
	
	public String getData(){
		return data;
	}
	
	public void setData(String input){
		if(input.length() > maxLength) System.out.println("String data shortened.");
		data = input.substring(0, Math.min(maxLength, input.length()));
	}
	
}
